# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiosmb
_pkgname=aiosmb
pkgver=0.4.13
pkgrel=1
pkgdesc='Fully asynchronous SMB library written in pure python.'
arch=('any')
url='https://pypi.org/project/aiosmb/#files'
license=('MIT')
depends=('python' 'python-minikerberos' 'python-winsspi' 'python-six'
         'python-aiocmd' 'python-colorama')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('08d059f8b594a5f7f10de2700038075628d634c994cc9044858ec1bf04d6b6fb52630edf41d39f6c7ed1df4e0b37e4b604df6fe136d72022422c171bf685a2bb')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}
